package com.jghz.transfer.controller;

import java.util.Collection;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.annotation.DataResolver;
import com.bstek.dorado.annotation.Expose;
import com.bstek.dorado.data.provider.Page;
import com.jghz.transfer.entity.Tbplateform;
import com.jghz.transfer.service.WayBillService;

/**
 * 运单
 *
 * @author Administrator
 *
 */
@Controller
public class WayBillController {

	@Autowired
	private WayBillService wayBillService;

	@DataProvider
	public void load(Page<Tbplateform> page, Map<String, Object> paramater) throws Exception {
		wayBillService.load(page, paramater);
	}

	@DataResolver
	public void save(Collection<Tbplateform> cols) {
		wayBillService.save(cols);
	}

	@Expose
	public void sendMessage(Collection<Tbplateform> ListPlateformas) throws Exception {
		wayBillService.send(ListPlateformas);
	}
}
